﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using YFIN.View.ViewModels;

namespace YFIN.View.Toolkit
{
    public partial class RiskPrefer : UserControl
    {
        RiskPreferVM _rpvm;
        private static RiskPrefer _rp;
        public RiskPrefer()
        {
            InitializeComponent();
            _rpvm = new RiskPreferVM();
            this.DataContext = _rpvm;
            _rp = this;
        }

        private void button2_Click(object sender, RoutedEventArgs e)
        {
            StoryboardQues.Begin();
        }

        public static void ShowRes()
        {
            _rp.StoryboardRes.Begin();
        }
    }
}
